<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>佐心，教家长做父母</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
	<c:set var="ctx" value="${pageContext.request.contextPath}" />
    <link rel="stylesheet" href="${ctx}/assets/css/amazeui.min.css?v=2.9">
    <link rel="stylesheet" href="${ctx}/assets/css/style.css?v=2.3">
    <link rel="stylesheet" href="${ctx}/assets/css/index.css?v=2.3">
	<script src="${ctx}/assets/js/jquery.min.js"></script>
	<script src="${ctx}/assets/js/amazeui.min.js"></script>
	<script src="${ctx}/assets/js/common.js"></script>
	<script>
    	var counsTels='${counseTel}';
    	if(counsTels==""){
    		alert("咨询师登录超时");
    		location.href="login.jsp";
    	}
    </script>
</head>
<body class="bg-gray">
<header data-am-widget="header" class="am-header am-header-default am-header-fixed bg-4">

    <h1 class="am-header-title">
        我 的
    </h1>

</header>
<section class="" id="amz-main" data-tag="css-nav">
    <div class="my-top-2 am-padding-top-sm font-color-white">
        <div class="am-text-center"><a href="${ctx}/goToUpdateMyData"><img id="personHead" class="am-circle"></a></div>
        <div class="am-margin-top-xs am-text-center zhanwei" id="cName"></div>
        <div class=" am-text-center am-text-sm margin-top-5" id="proName"></div>
        <div class=" am-text-center am-text-sm " id="direction">擅长方向：</div>
    </div>

    <div class="am-padding-left-sm font-color-13 my-menu-list bg-white">
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-1"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='${ctx}/getMessage?sendType=1'">
                <span class="prelative">消息通知<i style="display:none" class="icon-hongdian"></i></span>
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-10"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='${ctx}/gotoCanYuyue'">
                可约时间
            </div>
        </div>
        <div class="box   " >
            <div class="width-35px ">
                <i class="my-icon my-icon-11"></i>
            </div>
            <div class="box-1    padding-bottom-7" onclick="window.location.href='myTixian.jsp'">
                我的收入
            </div>
        </div>

    </div>

    <div class="am-padding-left-sm font-color-13 my-menu-list bg-white am-margin-top-sm">
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-9"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='myzixun.jsp'">
                我的咨询
            </div>
        </div>
        <div class="box  am-padding-bottom-xs "  >
            <div class="width-35px ">
                <i class="my-icon my-icon-12"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='myFreeAsks.jsp'">
                免费提问
            </div>
        </div>
        <div class="box   ">
            <div class="width-35px ">
                <i class="my-icon my-icon-13"></i>
            </div>
            <div class="box-1    padding-bottom-7" onclick="window.location.href='mypeixun.jsp'">
                我的培训
            </div>
        </div>
        </div>

    <div class="am-padding-left-sm font-color-13 my-menu-list bg-white am-margin-top-sm">
        <div class="box  am-padding-bottom-xs ">
            <div class="width-35px ">
                <i class="my-icon my-icon-6"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="showPop()">
                分享有礼
            </div>
        </div>
        <div class="box  am-padding-bottom-xs " >
            <div class="width-35px ">
                <i class="my-icon my-icon-7"></i>
            </div>
            <div class="box-1   border-bottom padding-bottom-7" onclick="window.location.href='tucao.jsp'">
                吐槽我们
            </div>
        </div>
        <div class="box   " >
            <div class="width-35px ">
                <i class="my-icon my-icon-8"></i>
            </div>
            <div class="box-1    padding-bottom-7" onclick="window.location.href='9.jsp'">
                关于我们
            </div>
        </div>
    </div>


</section>
<footer data-am-widget="navbar" class="am-navbar am-cf am-navbar-default " id="">
    <ul class="am-navbar-nav am-cf am-avg-sm-4">

		<li>
            <a href="myzixun.jsp"  class="">
                <img src="${ctx}/assets/images/icon/index/icon_zixun.png"
                     alt="我的咨询"/>
                <span class="am-navbar-label">我的咨询</span>
            </a>
        </li>

        <li>
            <a href="mypeixun.jsp" class="">
                <img src="${ctx}/assets/images/icon/index/icon_peixun.png"
                     alt="我的培训"/>
                <span class="am-navbar-label">我的培训</span>
            </a>
        </li>
        <li>
            <a href="myCounse.jsp" class="selected">
                <img src="${ctx}/assets/images/icon/index/icon_user_on.png"
                     alt="我的"/>
                <span class="am-navbar-label">我的</span>
            </a>
        </li>
    </ul>
</footer>
</body>
	<script>
		var counselorList=$.ajax({url:"${ctx}/getMyCounserLorDesc",async:false});
        var jsonCounselor=JSON.parse(counselorList.responseText);
        
        if(jsonCounselor.resultCode=="0"){
        	$("#cName").text(jsonCounselor.counselor.counseName);
        	$("#proName").text(jsonCounselor.counselor.proName);
        	$("#direction").text("擅长方向："+jsonCounselor.counselor.goodDirection);
        	$("#personHead").attr("src",jsonCounselor.counselor.personHead);
        }
        
               var html1=$.ajax({url:"${ctx}/hasMessage?type=1",async:false});
        var html11=JSON.parse(html1.responseText);
        if(html11.resultCode=="0"){
        	$(".icon-hongdian").show();
        }
        
	</script>
</html>